package main

import (
	"WORKSPACE/dao"
	"WORKSPACE/pkg/setting"
	"WORKSPACE/services"
	"fmt"
)

func init()  {
	setting.Setup()
	dao.Setup()

}

func main()  {
	//gin.SetMode(setting.ServerSetting.RunMode)
	//err, infoGet, total:= services.GetAllgoods()
	//fmt.Println(infoGet)
	//fmt.Println(total)
	//if err!=nil{
	//	panic(err)
	//}

	//err := services.Addconsumer()
	//if err != nil{
	//	panic(err)
	//}

	err, infoget, total := services.GetAllorders()
	fmt.Println(infoget)
	fmt.Println(total)
	if err != nil{
		panic(err)
	}

	//err, info_add := models.Addgoods()
	//fmt.Println(info_add)
	//if err != nil{
	//	panic(err)
	//}




}